package com.heatup.apt.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 首页资源表
 * 
 *
 */
@TableName("index_resource")
public class IndexResource extends BaseModel implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 标题 */
    private String title;

    /** 副标题 */
    @TableField(value = "sub_title")
    private String subTitle;

    /** 主类型 */
    @TableField(value = "main_type")
    private Integer mainType;

    /** 子类型 */
    @TableField(value = "sub_type")
    private Integer subType;

    /** 视频预览URL */
    @TableField(value = "video_preview_url")
    private String videoPreviewUrl;

    /** 视频标签 */
    @TableField(value = "video_attr")
    private String videoAttr;

    /** 视频时长 */
    @TableField(value = "video_time")
    private String videoTime;

    /** 视频类别 */
    @TableField(value = "video_type")
    private String videoType;

    /** 视频类型中的教练ID */
    @TableField(value = "coach_id")
    private Integer coachId;

    /** 文章摘要 */
    private String desc;

    /** 图片URL */
    @TableField(value = "img_url")
    private String imgUrl;

    /** 链接 */
    private String link;

    /** 排序 */
    @TableField(value = "sort_num")
    private Integer sortNum;

    /** 备注 */
    private String remark;

    /** 状态 1:待上架 2:已上架 3:已下架 4:逻辑删除 */
    private Integer status;

    /** 创建人 */
    @TableField(value = "created_by")
    private Integer createdBy;

    /** 创建时间 */
    @TableField(value = "created_time")
    private Date createdTime;

    /** 更新人 */
    @TableField(value = "updated_by")
    private Integer updatedBy;

    /** 更新时间 */
    @TableField(value = "updated_time")
    private Date updatedTime;



    /**
     * 教练昵称
     */
    @TableField(exist = false)
    private String coachNickName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public Integer getMainType() {
        return mainType;
    }

    public void setMainType(Integer mainType) {
        this.mainType = mainType;
    }

    public Integer getSubType() {
        return subType;
    }

    public void setSubType(Integer subType) {
        this.subType = subType;
    }

    public String getVideoPreviewUrl() {
        return videoPreviewUrl;
    }

    public void setVideoPreviewUrl(String videoPreviewUrl) {
        this.videoPreviewUrl = videoPreviewUrl;
    }

    public String getVideoAttr() {
        return videoAttr;
    }

    public void setVideoAttr(String videoAttr) {
        this.videoAttr = videoAttr;
    }

    public String getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(String videoTime) {
        this.videoTime = videoTime;
    }

    public String getVideoType() {
        return videoType;
    }

    public void setVideoType(String videoType) {
        this.videoType = videoType;
    }

    public Integer getCoachId() {
        return coachId;
    }

    public void setCoachId(Integer coachId) {
        this.coachId = coachId;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Integer updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getCoachNickName() {
        return coachNickName;
    }

    public void setCoachNickName(String coachNickName) {
        this.coachNickName = coachNickName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("IndexResource{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", mainType=").append(mainType);
        sb.append(", subType=").append(subType);
        sb.append(", videoPreviewUrl='").append(videoPreviewUrl).append('\'');
        sb.append(", videoAttr='").append(videoAttr).append('\'');
        sb.append(", videoTime='").append(videoTime).append('\'');
        sb.append(", videoType='").append(videoType).append('\'');
        sb.append(", coachId=").append(coachId);
        sb.append(", desc='").append(desc).append('\'');
        sb.append(", imgUrl='").append(imgUrl).append('\'');
        sb.append(", link='").append(link).append('\'');
        sb.append(", sortNum=").append(sortNum);
        sb.append(", remark='").append(remark).append('\'');
        sb.append(", status=").append(status);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedBy=").append(updatedBy);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append('}');
        return sb.toString();
    }
}
